package com.shy.advice;

import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

@Service
public class DataBaseService {
    public void connect(Integer port) {
        System.out.println("connect");
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
